package dancetwotiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceElementReissueConfigLog 道具补发
type DanceElementReissueConfigLog struct {
	Id               int64          `json:"id" gorm:"primaryKey;autoIncrement;comment:id"`
	UserId           string         `json:"userId" gorm:"column:user_id;type:varchar(256);not null;default:'';comment:用户id"`
	ReUserId         string         `json:"reUserId" gorm:"column:re_user_id;type:varchar(256);not null;default:'';comment:补发人id"`
	UserName         string         `json:"userName" gorm:"column:user_name;type:varchar(256);not null;default:'';comment: 用户名字"`
	ElementNo        string         `json:"elementNo" gorm:"column:element_no;type:varchar(256);not null;default:'';comment: 散件编号"`
	ElementName      string         `json:"elementName" gorm:"column:element_name;type:varchar(256);not null;default:'';comment: 散件名称"`
	ElementOneType   int64          `json:"elementOneType" gorm:"column:element_one_type;type:bigint;default:0;not null;comment:一级类型"`
	SendTime         int64          `json:"sendTime" gorm:"column:send_time;type:bigint;default:0;not null;comment:发放时间"`
	TaskId           int64          `json:"taskId" gorm:"column:taskId;type:bigint;default:0;not null;comment:任务id"`
	Status           int            `json:"status" gorm:"column:status;type:int;default:0;not null;comment:补发状态"`
	Remark           string         `json:"remark" gorm:"column:remark;type:varchar(256);not null;default:'';comment: 备注"`
	ReasonForFailure string         `json:"reasonForFailure" gorm:"column:reason_for_failure;type:varchar(256);not null;default:'';comment: 失败原因"`
	Reviewer         string         `json:"reviewer" gorm:"column:reviewer;type:varchar(256);not null;default:'';comment:审核人"` // 审核人
	CreatedId        int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`  // 更新人id
	CreatedAt        time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt        time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt        gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
